<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::DecisionTree&lt; NodeType &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1_decision_tree.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classpcl_1_1_decision_tree-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::DecisionTree&lt; NodeType &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>Class representing a decision tree.  
 <a href="classpcl_1_1_decision_tree.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="decision__tree_8h_source.html">decision_tree.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a9a75be681a33bf953a66eb40f8e3787b"><td class="memItemLeft" align="right" valign="top"><a id="a9a75be681a33bf953a66eb40f8e3787b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_decision_tree.html#a9a75be681a33bf953a66eb40f8e3787b">DecisionTree</a> ()</td></tr>
<tr class="memdesc:a9a75be681a33bf953a66eb40f8e3787b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:a9a75be681a33bf953a66eb40f8e3787b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a229368fa5783e45758e577f79e136cb8"><td class="memItemLeft" align="right" valign="top"><a id="a229368fa5783e45758e577f79e136cb8"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_decision_tree.html#a229368fa5783e45758e577f79e136cb8">~DecisionTree</a> ()</td></tr>
<tr class="memdesc:a229368fa5783e45758e577f79e136cb8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a229368fa5783e45758e577f79e136cb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf084113b4b850e49fade3202b90b144"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_decision_tree.html#abf084113b4b850e49fade3202b90b144">setRoot</a> (const NodeType &amp;root)</td></tr>
<tr class="memdesc:abf084113b4b850e49fade3202b90b144"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the root node of the tree.  <a href="classpcl_1_1_decision_tree.html#abf084113b4b850e49fade3202b90b144">更多...</a><br /></td></tr>
<tr class="separator:abf084113b4b850e49fade3202b90b144"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67bb781f8421e638107344a37cf0b718"><td class="memItemLeft" align="right" valign="top"><a id="a67bb781f8421e638107344a37cf0b718"></a>
NodeType &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_decision_tree.html#a67bb781f8421e638107344a37cf0b718">getRoot</a> ()</td></tr>
<tr class="memdesc:a67bb781f8421e638107344a37cf0b718"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the root node of the tree. <br /></td></tr>
<tr class="separator:a67bb781f8421e638107344a37cf0b718"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a768f6aa51d3ebca6b876481e5f47d8df"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_decision_tree.html#a768f6aa51d3ebca6b876481e5f47d8df">serialize</a> (::std::ostream &amp;stream) const</td></tr>
<tr class="memdesc:a768f6aa51d3ebca6b876481e5f47d8df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Serializes the decision tree.  <a href="classpcl_1_1_decision_tree.html#a768f6aa51d3ebca6b876481e5f47d8df">更多...</a><br /></td></tr>
<tr class="separator:a768f6aa51d3ebca6b876481e5f47d8df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf6593c2036bd12d2cf693af215893e1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_decision_tree.html#acf6593c2036bd12d2cf693af215893e1">deserialize</a> (::std::istream &amp;stream)</td></tr>
<tr class="memdesc:acf6593c2036bd12d2cf693af215893e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deserializes the decision tree.  <a href="classpcl_1_1_decision_tree.html#acf6593c2036bd12d2cf693af215893e1">更多...</a><br /></td></tr>
<tr class="separator:acf6593c2036bd12d2cf693af215893e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a00e964864571e82f5140b345479b57d1"><td class="memItemLeft" align="right" valign="top"><a id="a00e964864571e82f5140b345479b57d1"></a>
NodeType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_decision_tree.html#a00e964864571e82f5140b345479b57d1">root_</a></td></tr>
<tr class="memdesc:a00e964864571e82f5140b345479b57d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">The root node of the decision tree. <br /></td></tr>
<tr class="separator:a00e964864571e82f5140b345479b57d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;class NodeType&gt;<br />
class pcl::DecisionTree&lt; NodeType &gt;</h3>

<p>Class representing a decision tree. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="acf6593c2036bd12d2cf693af215893e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf6593c2036bd12d2cf693af215893e1">&#9670;&nbsp;</a></span>deserialize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class NodeType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_decision_tree.html">pcl::DecisionTree</a>&lt; NodeType &gt;::deserialize </td>
          <td>(</td>
          <td class="paramtype">::std::istream &amp;&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Deserializes the decision tree. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>The source for the deserialization. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;      {</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <a class="code" href="classpcl_1_1_decision_tree.html#a00e964864571e82f5140b345479b57d1">root_</a>.deserialize (stream);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;      }</div>
<div class="ttc" id="aclasspcl_1_1_decision_tree_html_a00e964864571e82f5140b345479b57d1"><div class="ttname"><a href="classpcl_1_1_decision_tree.html#a00e964864571e82f5140b345479b57d1">pcl::DecisionTree::root_</a></div><div class="ttdeci">NodeType root_</div><div class="ttdoc">The root node of the decision tree.</div><div class="ttdef"><b>Definition:</b> decision_tree.h:98</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a768f6aa51d3ebca6b876481e5f47d8df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a768f6aa51d3ebca6b876481e5f47d8df">&#9670;&nbsp;</a></span>serialize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class NodeType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_decision_tree.html">pcl::DecisionTree</a>&lt; NodeType &gt;::serialize </td>
          <td>(</td>
          <td class="paramtype">::std::ostream &amp;&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Serializes the decision tree. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">stream</td><td>The destination for the serialization. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;      {</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        <a class="code" href="classpcl_1_1_decision_tree.html#a00e964864571e82f5140b345479b57d1">root_</a>.serialize (stream);</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;      }</div>
</div><!-- fragment -->
</div>
</div>
<a id="abf084113b4b850e49fade3202b90b144"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf084113b4b850e49fade3202b90b144">&#9670;&nbsp;</a></span>setRoot()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class NodeType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_decision_tree.html">pcl::DecisionTree</a>&lt; NodeType &gt;::setRoot </td>
          <td>(</td>
          <td class="paramtype">const NodeType &amp;&#160;</td>
          <td class="paramname"><em>root</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets the root node of the tree. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">root</td><td>The root node. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;      {</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <a class="code" href="classpcl_1_1_decision_tree.html#a00e964864571e82f5140b345479b57d1">root_</a> = root;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;      }</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>ml/include/pcl/ml/dt/<a class="el" href="decision__tree_8h_source.html">decision_tree.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><a class="el" href="classpcl_1_1_decision_tree.html">DecisionTree</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
